Skip to content

Coincident rewrite - A single roundtrip version (unbuffered) #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Apr 7, 2025

This is the tested/working version of Polyscript with latest coincident rewrite.

Main changes:

  • a new minimalistic version of coincident is being used where a single roundtrip is enough to satisfy worker/main roundtrips
  • a fresh-new encoder/decoder is being used, which:
    • it is slightly faster than buffered-clone, hence much faster than structured-clone
    • it produces an outcome that is smaller than structured-clone yet bigger than buffered-clone
    • it was essential to understand what was going on and it turned out to work really well ... so I am sold for the time being, changes are required anyway in buffered-clone to be aligned with performance and accuracy (i.e. I've spent days after a null VS undefined absurd behavior embedded in some WASM interpreter and in our logic, breaking things in a very peculiar way)
  • the coincident rewrite is not completed, reason it's name is under my personal handler, but its core part is ... I will try to improve also the whole window proxy story but I wanted something out as incremental update and also work on other things (so I am making myself not stuck with this topic)

I think I'll publish this to npm to hear from possible users if something is not right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant